package com.jianyun.jyzs.model.imdoel;

/**
 * Created by yangshijun on 2018/9/21.
 */

public interface IFriendDetailModel {
    /**
     * 添加常用联系人
     * @param enterpriseCode
     *
     * @param commonContactId
     */
    void addContact(String enterpriseCode,String userId,String commonContactId,OnAddContactLisener onAddContactLisener);


    /**
     * 删除常用联系人
     * @param enterpriseCode
     *
     * @param recordId
     */
    void deleteContact(String enterpriseCode,String userId,String recordId,OnDeleteContactListener onDeleteContactListener);


    interface OnAddContactLisener{
        void onSuccess();
        void onFailed();
    }

    interface OnDeleteContactListener{
        void onSuccess();
        void onFailed();
    }
}
